﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using ExtendPropertyLib.WPF;
using Telerik.Windows.Controls;
using System.Collections.ObjectModel;
using ExORMDesginer.Models;

namespace ExORMDesginer.UserControls
{
    /// <summary>
    /// Interaction logic for DatabaseExplorerView.xaml
    /// </summary>

    public partial class DatabaseExplorerView : UserControl
    {
        public DatabaseExplorerView()
        {

            //Windows8TouchPalette.Palette.MainColor = (Color)ColorConverter.ConvertFromString("#FF1D1C1C");
            //Windows8TouchPalette.Palette.AccentColor = (Color)ColorConverter.ConvertFromString("#FF9731FF");
            //Windows8TouchPalette.Palette.MediumColor = (Color)ColorConverter.ConvertFromString("#FF6D11D4");
            //Windows8TouchPalette.Palette.ValidationColor = Colors.Red;
            StyleManager.ApplicationTheme = new Telerik.Windows.Controls.Windows8Theme();
            InitializeComponent();

         
        }

      
        private void UserControl_Loaded_1(object sender, RoutedEventArgs e)
        {
            //Binding itemsBinding = new Binding();
            ////设置要绑定源控件
            //itemsBinding.Source = this.DataContext;
            ////设置要绑定属性
            //itemsBinding.Path = new PropertyPath("SQLEditerTabs");
            ////设置绑定到要绑定的控件
            //radDock.SetBinding(RadPaneGroup.ItemsSourceProperty, itemsBinding);

            //var viewModel = this.DataContext as DatabaseExplorerViewModel;

          
        }

        //void ItemsSource_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
        //{
        //    foreach (SQLEditerItemInfo item in e.NewItems)
        //    {
        //        RadDocumentPane rdp = new RadDocumentPane();
        //        rdp.Title = item.Title;


        //        radDock.Items.Add(rdp);

        //    }
            
            
        //}
    }
}
